#ifndef FLOAT_EXPRESSION_H_
#define FLOAT_EXPRESSION_H_

#include "expression.h"
#include <iostream>

class LiteralExpression : public Expression
{
private:
	float literalValue;
public:
	LiteralExpression(float value)
		: literalValue(value)
	{
	}

	float value() { return this->literalValue; }
	virtual void printInfix() { std::cout << literalValue; };
	virtual void printRpn() { std::cout << literalValue << ' '; }
};

#endif